package com.acme.bankapp.domain.account;

import com.acme.bankapp.exception.NotEnoughFundsException;

import java.io.Serializable;

public interface Account extends Serializable{
    double getBalance();
    void deposit(double x);
    void withdraw(double x) throws NotEnoughFundsException;
    double maximumAmountToWithdraw();
    String toJSONString();
}
